Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PERF: Groupby.shift dont re-call libgroupby.group_shift_indexer #42885

Merged
merged 2 commits into from
Aug 4, 2021

Conversation

jbrockmendel
Copy link
Member

ATM we're calling libgroupby.group_shift_indexer for every column, but we only need to call it once.

@jreback
Copy link
Contributor

jreback commented Aug 4, 2021

wow is there a relevant asv that improves here?

@jbrockmendel
Copy link
Member Author

wow is there a relevant asv that improves here?

There are a few that reach here, but they are all single-column so won't see a boost. #42841 adds multi-column cases to some of those

@jreback jreback added Groupby Performance Memory or execution speed performance labels Aug 4, 2021
@jreback jreback added this to the 1.4 milestone Aug 4, 2021
@jreback jreback merged commit c760df5 into pandas-dev:master Aug 4, 2021
@jbrockmendel jbrockmendel deleted the perf-result_is_index branch August 4, 2021 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groupby Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants